package com.peng.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
//下面这个注解等价于<bean id="user" class="com.peng.pojo.User"/>
@Component
public class User {
    @Value("哈哈")
    public String name;
}
